﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace PageEntity
{
    /// <summary>
    /// 
    /// </summary>
    public class ModuleDTO
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long ModuleID { get; set; }
        /// <summary>
        /// 模块名称
        /// </summary>
        [Display(Name = "模块名称")]
        public string ModuleName { get; set; }
        /// <summary>
        /// 路径
        /// </summary>
        [Display(Name = "路径")]
        public string Href { get; set; }
        /// <summary>
        /// 图标路径
        /// </summary>
        [Display(Name = "图标")]
        public string iconCls { get; set; }
        /// <summary>
        /// 父节点
        /// </summary>
        [Display(Name = "父级")]
        public long _parentId { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name = "排序")]
        public Int32 Sort { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        public String Remark { get; set; }
        /// <summary>
        /// 录入时间
        /// </summary>
        public DateTime CheckInTime { get; set; }
        /// <summary>
        /// 数据状态
        /// </summary>
        public bool DataState { get; set; }
        /// <summary>
        /// 节点状态
        /// </summary>
        public string state { get; set; }
        /// <summary>
        /// 子节点
        /// </summary>
        private List<ModuleDTO> m_Children;
        public List<ModuleDTO> Children
        {
            get
            {
                if (m_Children == null)
                    m_Children = new List<ModuleDTO>();
                return m_Children;
            }
        }
    }
}
